package com.clayecloud.common.client.services.Impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.clayecloud.common.entity.RolePermission;
import com.clayecloud.common.mappers.RolePermissionMapper;
import com.clayecloud.common.client.services.RolePermissionService;
/**
 * @author  ClayeLink
 * @date  2021/12/31 14:51
 */
@Service
public class RolePermissionServiceImpl implements RolePermissionService{

    @Resource
    private RolePermissionMapper rolePermissionMapper;

    @Override
    public int deleteByPrimaryKey(Integer roleId,Integer permissionId) {
        return rolePermissionMapper.deleteByPrimaryKey(roleId,permissionId);
    }

    @Override
    public int insert(RolePermission record) {
        return rolePermissionMapper.insert(record);
    }

    @Override
    public int insertSelective(RolePermission record) {
        return rolePermissionMapper.insertSelective(record);
    }

}
